const routes = [
  {
    path: '/:pathMatch(.*)',
    redirect: '/'
  },
  {
    name: 'login',
    path: '/',
    component: () => import(/* webpackChunkName: 'login' */ 'components/login/login'),
  },
  {
    name: 'home',
    path: '/home',
    redirect: '/home/realtime',
    component: () => import(/* webpackChunkName: 'home' */ 'components/home/home'),
    children: [
      {
        name: 'realtime',
        path: '/home/realtime',
        redirect: '/home/realtime/realtimeNwdl',
        component: () => import(/* webpackChunkName: 'realtime' */ 'components/realtime/realtime'),
        children: [
          {
            name: 'realtimeNwdl',
            path: '/home/realtime/realtimeNwdl',
            meta: { navActive: 'realtime', menuActive: 'realtimeNwdl' },
            component: () => import(/* webpackChunkName: 'realtimeNwdl' */ 'components/realtimeNwdl/realtimeNwdl'),
          },
        ]
      },
      {
        name: 'history',
        path: '/home/history',
        redirect: '/home/history/historyNwdl',
        component: () => import(/* webpackChunkName: 'history' */ 'components/history/history'),
        children: [
          {
            name: 'historyNwdl',
            path: '/home/history/historyNwdl',
            meta: { navActive: 'history', menuActive: 'historyNwdl' },
            component: () => import(/* webpackChunkName: 'historyNwdl' */ 'components/historyNwdl/historyNwdl'),
          },
        ]
      }
    ]
  }
]

export default routes
